<template>
    <MyLoading v-if="loadingTag" />
</template>

<script setup lang='ts'>
import { ref, defineProps, PropType } from "vue";
import MyLoading from "./MyLoading.vue";
  // 导入电影列表的相关关键属性数据
import { ListType } from "../types/index";

let loadingTag = ref<boolean>(true);

const props = defineProps({
    list: {
        type: Array as PropType<ListType[]>,
        default: () => []
    },
    type: {
        type: Number,
        default: () => 0
    },
})
if (props.list.length > 0) loadingTag.value = false;

</script>

<style scoped lang='scss'>
</style>